package com.cgnpc.scp.common.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cgnpc.scp.common.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.util.Date;

@TableName(value = "tbl_common_fileupload")
public class ScpCommonFileUpload {
    @TableId
    private String id;

    private String fileCenterTenantId;

    private String fileCenterAppId;

    private String fileCenterAppName;

    private String fileCenterFileId;

    private String fileCenterFileName;

    private String fileCenterFileType;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long fileCenterFileSize;

    private String fileCenterUrl;

    private String fileCenterUploadUserCode;

    private String fileCenterUploadUserName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date fileCenterUploadTime;

    private String fileCenterFileStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private String createUser;

    private String createUserName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastUpdateTime;

    private String lastUpdateUser;

    private String lastUpdateUserName;

    // begin 自定义字段
    @TableField(exist = false)
    private String message;
    // end 自定义字段

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getFileCenterTenantId() {
        return fileCenterTenantId;
    }

    public void setFileCenterTenantId(String fileCenterTenantId) {
        this.fileCenterTenantId = fileCenterTenantId == null ? null : fileCenterTenantId.trim();
    }

    public String getFileCenterAppId() {
        return fileCenterAppId;
    }

    public void setFileCenterAppId(String fileCenterAppId) {
        this.fileCenterAppId = fileCenterAppId == null ? null : fileCenterAppId.trim();
    }

    public String getFileCenterAppName() {
        return fileCenterAppName;
    }

    public void setFileCenterAppName(String fileCenterAppName) {
        this.fileCenterAppName = fileCenterAppName == null ? null : fileCenterAppName.trim();
    }

    public String getFileCenterFileId() {
        return fileCenterFileId;
    }

    public void setFileCenterFileId(String fileCenterFileId) {
        this.fileCenterFileId = fileCenterFileId == null ? null : fileCenterFileId.trim();
    }

    public String getFileCenterFileName() {
        return fileCenterFileName;
    }

    public void setFileCenterFileName(String fileCenterFileName) {
        this.fileCenterFileName = fileCenterFileName == null ? null : fileCenterFileName.trim();
    }

    public String getFileCenterFileType() {
        return fileCenterFileType;
    }

    public void setFileCenterFileType(String fileCenterFileType) {
        this.fileCenterFileType = fileCenterFileType == null ? null : fileCenterFileType.trim();
    }

    public Long getFileCenterFileSize() {
        return fileCenterFileSize;
    }

    public void setFileCenterFileSize(Long fileCenterFileSize) {
        this.fileCenterFileSize = fileCenterFileSize;
    }

    public String getFileCenterUrl() {
        return fileCenterUrl;
    }

    public void setFileCenterUrl(String fileCenterUrl) {
        this.fileCenterUrl = fileCenterUrl == null ? null : fileCenterUrl.trim();
    }

    public String getFileCenterUploadUserCode() {
        return fileCenterUploadUserCode;
    }

    public void setFileCenterUploadUserCode(String fileCenterUploadUserCode) {
        this.fileCenterUploadUserCode = fileCenterUploadUserCode == null ? null : fileCenterUploadUserCode.trim();
    }

    public String getFileCenterUploadUserName() {
        return fileCenterUploadUserName;
    }

    public void setFileCenterUploadUserName(String fileCenterUploadUserName) {
        this.fileCenterUploadUserName = fileCenterUploadUserName == null ? null : fileCenterUploadUserName.trim();
    }

    public Date getFileCenterUploadTime() {
        return DateUtil.cloneNewDate(fileCenterUploadTime);
    }

    public void setFileCenterUploadTime(Date fileCenterUploadTime) {
        this.fileCenterUploadTime = DateUtil.cloneNewDate(fileCenterUploadTime);
    }

    public String getFileCenterFileStatus() {
        return fileCenterFileStatus;
    }

    public void setFileCenterFileStatus(String fileCenterFileStatus) {
        this.fileCenterFileStatus = fileCenterFileStatus == null ? null : fileCenterFileStatus.trim();
    }

    public Date getCreateTime() {
        return DateUtil.cloneNewDate(createTime);
    }

    public void setCreateTime(Date createTime) {
        this.createTime = DateUtil.cloneNewDate(createTime);
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName == null ? null : createUserName.trim();
    }

    public Date getLastUpdateTime() {
        return DateUtil.cloneNewDate(lastUpdateTime);
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = DateUtil.cloneNewDate(lastUpdateTime);
    }

    public String getLastUpdateUser() {
        return lastUpdateUser;
    }

    public void setLastUpdateUser(String lastUpdateUser) {
        this.lastUpdateUser = lastUpdateUser == null ? null : lastUpdateUser.trim();
    }

    public String getLastUpdateUserName() {
        return lastUpdateUserName;
    }

    public void setLastUpdateUserName(String lastUpdateUserName) {
        this.lastUpdateUserName = lastUpdateUserName == null ? null : lastUpdateUserName.trim();
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}